﻿using TeaLightV5.Foundation.Sal.Interfaces;

namespace TeaLightV5.Foundation.BL.Sync
{
    public interface ISyncObject<TDto, TE, TKey>
        where TDto : IServiceObject<TKey>, new()
        where TE : IEntity<TKey>, new()
        
    {
        TDto FromDatabase(TE item);

        TE FromService(TDto item);
    }
}
